package com.copa.module.goods.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.copa.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
 * @author copa
 * @createDate 2021-01-14
 * @function   t_category表实体
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_category")
@ApiModel(value="Category对象", description="")
public class CategoryEntity extends BaseEntity {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "类目名字")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "父类目id 0为根目录")
    @TableField("pid")
    private Long pid;

    @ApiModelProperty(value = "排序")
    @TableField("sort_order")
    private Integer sortOrder;

    @ApiModelProperty(value = "类目级别 1为一级目录 2为二级目录")
    @TableField("level")
    private Integer level;

    @ApiModelProperty(value = "类目图片")
    @TableField("pic_url")
    private String picUrl;

    @ApiModelProperty(value = "是否删除 0否 1是")
    @TableField("is_delete")
    private Integer isDelete;


    public static final String NAME = "name";

    public static final String PID = "pid";

    public static final String SORT_ORDER = "sort_order";

    public static final String LEVEL = "level";

    public static final String PIC_URL = "pic_url";

    public static final String IS_DELETE = "is_delete";


}
